package com.meng.d_model;

import java.io.Serializable;
import java.text.SimpleDateFormat;


/**
 * 用户
 *
 * @author MENG
 * @version 2017/12/15
 * @see
 */
public class User implements Serializable
{

    private SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    private String email;//邮箱 唯一

    private String password;//密码

    private String name;//姓名

    private String state;//激活状态 0:未激活  1:已激活

    private String token;//激活码   Email(加密)+当前时间(Long)

    private String activeTime;//激活时间  注册的当前时间+email.time(配置文件中激活期限)

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getActiveTime() {
        return activeTime;
    }

    public void setActiveTime(String activeTime) {
        this.activeTime = activeTime;
    }

    @Override
    public String toString() {
        return "User{" +
               "format=" + format +
               ", email='" + email + '\'' +
               ", password='" + password + '\'' +
               ", name='" + name + '\'' +
               ", state='" + state + '\'' +
               ", token='" + token + '\'' +
               ", activeTime='" + activeTime + '\'' +
               '}';
    }

}
